package com.neuedu.amqp.consumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author 金山
 * 项目：sca-all-in-one
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2025/6/511:37
 */
@Component
public class SpringObjectRabbitListener {

    @RabbitListener(queues = "object.queue")
    public void listenSimpleQueueMessage(Map msg) {
        // 定义处理消息的逻辑
        System.out.println("Spring 消费者接收到的 消息：【" + msg + "】");
    }


}
